package com.zzxx.shooter;

public class Bullet extends FlyingObject {

    private int speed;

    public Bullet(int x, int y){
        this.x=x;
        this.y=y;
        image = ShootGame.bullet0;
        speed = -3;
    }
    @Override
    public void step() {
        this.y+=speed;
    }
    public boolean outOfBound(){
        return y <0;
    }
}
